/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ClientComm;

import java.awt.Point;

/**
 *
 * @author Dakota
 */
public class Robot {
     protected String id;
     private Point location;
     protected Point oldLocation;
     protected Point initialLocation;
     char heading;
    
    /**
     * Constructor, set all required values
     * @param name      The name of the robot
     * @param point     The location of the robot in (X,Y) format
     * @param head      The heading of the robot (N, E, S, W)
     * @param v         True if the robot is virtual, false otherwise
     */
    public Robot(String name, Point point, char head) {
        this.id = name;
        this.location = point;
        this.heading = head;
        this.oldLocation = new Point(point.x,point.y);
        this.initialLocation = new Point(point.x,point.y);
        setLocation(location);
    }
    
    public String getId(){
        return id;
    }
    
    public void setLocation(Point point){
        //set location on arena node map
        this.location = point;
    }
}
